import request from '@/utils/request'

// 查询订单支付记录列表
export function listRecod(query) {
  return request({
    url: '/oms/payRecod/list',
    method: 'get',
    params: query
  })
}

// 查询订单支付记录详细
export function getRecod(id) {
  return request({
    url: '/oms/payRecod' + id,
    method: 'get'
  })
}

// 新增订单支付记录
export function addRecod(data) {
  return request({
    url: '/oms/payRecod',
    method: 'post',
    data: data
  })
}

// 修改订单支付记录
export function updateRecod(data) {
  return request({
    url: '/oms/payRecod',
    method: 'put',
    data: data
  })
}

// 删除订单支付记录
export function delRecod(id) {
  return request({
    url: '/oms/payRecod/' + id,
    method: 'delete'
  })
}

// 导出订单支付记录
export function exportRecod(query) {
  return request({
    url: '/oms/payRecod/export',
    method: 'get',
    params: query
  })
}